package io.gitee.wminyu.day02;

public class primeNumble3 {
    public static void main(String[] args){
        int count=0;
            for (int i=2;i<500;i++){
                boolean flag=true;
                for (int j=2;j<i;j++){
                    if (i%j==0){
                        flag=false;
                        break;
                    }
                }
                if (flag){
                    System.out.println(""+i);
                    count++;
                }
                if (count==50){
                    break;
                }
            }
            System.out.println(count);
        }


}
